﻿#ifndef FILETRANSFERSERVER_H
#define FILETRANSFERSERVER_H

#include <QTcpServer>
#include <QAbstractSocket>
#include <QHostAddress>

class CatThreadPool;

class FileTransferServer : public QTcpServer
{
    Q_OBJECT
public:
    explicit FileTransferServer(QObject *parent = nullptr);
    ~FileTransferServer();

private:
    void InitProperty( void );

public slots:
    void Listen(const QHostAddress &address = QHostAddress::Any, quint16 port = 0);

protected:
    void incomingConnection(qintptr handle);

private:
    CatThreadPool *m_pCatThreadPool;

};

#endif // FILETRANSFERSERVER_H
